package cn.net.yugu.doraemon.common.dal.entity;

import java.time.Instant;

import lombok.Data;

/**
 * @author xiangzhurui
 * @version 2023/3/3 14:59:15
 */
@Data
public abstract class BaseDeletableEntity extends BaseEntity {

    protected Instant deletedAt;

    public void setDeletedDefaultValue() {
        deletedAt = Instant.now();
    }

}
